From ebf9e9db4243b4c1b18a0bc414d24543fd9da558 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Mon, 10 Sep 2012 13:15:25 -0400 Subject: [PATCH] themingengine: animate spinners again Using the animation specified with CSS by the theme. --- gtk/gtkthemingengine.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c index e5012a9318..96f8eaf4c9 100644 --- a/gtk/gtkthemingengine.c +++ b/gtk/gtkthemingengine.c @@ -2644,13 +2644,18 @@ gtk_theming_engine_render_activity (GtkThemingEngine *engine, gdouble width, gdouble height) { - if (gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_SPINNER)) + GtkThemingBackground bg; + + _gtk_theming_background_init (&bg, engine, x, y, width, height, 0); + + if (gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_SPINNER) && + !_gtk_theming_background_has_background_image (&bg)) { render_spinner (engine, cr, x, y, width, height); } else { - gtk_theming_engine_render_background (engine, cr, x, y, width, height); + _gtk_theming_background_render (&bg, cr); gtk_theming_engine_render_frame (engine, cr, x, y, width, height); } } -- 2.30.2